package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class ResetGetCodeRequest extends BaseRequest {

    public static final String PATH = BaseRequest.PATH + "api/verify_reset";

    private String phoneNum;

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        ResetGetCodeRequestBody body = new ResetGetCodeRequestBody();
        body.setPhoneNum(phoneNum);
        return body;
    }

    private class ResetGetCodeRequestBody extends BaseRequestBody {

        @SerializedName("Phone")
        private String phoneNum;

        private ResetGetCodeRequestBody() {
            setSv(BaseRequestConfig.SV_RESET_GET_CODE);
        }

        public String getPhoneNum() {
            return phoneNum;
        }

        public void setPhoneNum(String phoneNum) {
            this.phoneNum = phoneNum;
        }

    }
}
